//
//  InfoBtnView.m
//  动漫之家
//
//  Created by 王少泽 on 16/12/2.
//  Copyright © 2016年 王少泽. All rights reserved.
//

#import "InfoBtnView.h"
#import "ComicCusttomController.h"
@implementation InfoBtnView
{
    UIButton* _tuijian;
    UIButton* _updateComic;
    UIButton* _fenelei;
    UIButton* _rank;
    UIButton* _zhuanti;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
 */
- (void)drawRect:(CGRect)rect {
    // Drawing code
    //覆盖在导航条上面
    ComicCusttomController* cccl = [[ComicCusttomController alloc]init];
    self.frame = cccl.navigationBar.frame;
    _tuijian = [UIButton buttonWithType:UIButtonTypeSystem];
    [_tuijian setTitle:@"推荐" forState:UIControlStateSelected];
    _tuijian.frame = CGRectMake(0, 20, 80, 40);
    //分别初始化五个按钮
    _updateComic = [UIButton buttonWithType:UIButtonTypeSystem];
    [_updateComic setTitle:@"更新" forState:UIControlStateNormal];
    _updateComic.frame = CGRectMake(125, 20, 80, 40);
    //分类的按钮
    _fenelei = [UIButton buttonWithType:UIButtonTypeSystem];
    [_fenelei setTitle:@"分类" forState:UIControlStateNormal];
    _fenelei.frame = CGRectMake(205, 20, 80, 40);
    //排行的按钮
    _rank = [UIButton buttonWithType:UIButtonTypeSystem];
    [_rank setTitle:@"排行" forState:UIControlStateNormal];
    _rank.frame = CGRectMake(285, 20, 80, 40);
    //专题的按钮
    _zhuanti = [UIButton buttonWithType:UIButtonTypeSystem];
    [_zhuanti setTitle:@"专题" forState:UIControlStateNormal];
    
}




@end
